package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 陈浩
 * @date 2021/1/8 9:53
 */
@ApiModel(value = "用户", description = "用户信息")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户名")
    private String name;

    @ApiModelProperty("年龄")
    private Integer age;

}